import request from '@/utils/request'

// 查询品牌
export function brandList(params) {
    return request({
      url: '/brands/selectbrandsall.action',
      method: 'get',
      params
    })
}
// 查询分类
export function classList(params) {
    return request({
      url: '/ptypes/selectallptype.action',
      method: 'get',
      params
    })
}
// 添加商品
export function addProduct(data) {
  return request({
    url: '/products/insertSelective.action',
    method: 'post',
    data
  })
}
// 获取规格下拉框
export function getSpec(params) {
  return request({
    url: '/specification/selectspelists.action',
    method: 'get',
    params
  })
}
// 获取规格参数下拉框
export function getSpecKey(params) {
  return request({
    url: '/standards/selectstanbysids.action',
    method: 'get',
    params
  })
}